package com.pug.security.rest;

import com.pug.security.mapper.UserMapper;
import com.pug.security.po.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: xq_pug_alibabacloud_parent
 * @description: 模拟资源  /api开头的已经释放，可以直接访问，
 * @author: Mr.Ren
 * @create: 2023-07-16 16:26
 **/
@RestController
public class AdminUserController {

    @Autowired
    private UserMapper userMapper;

    @GetMapping("/api/getUser")
    public SysUser apiUser(){
        SysUser sysUser = userMapper.selectById(37);
        return sysUser;
    }
    @PostMapping("/api/getUser2")
    public SysUser apiUser2(){
        SysUser sysUser = userMapper.selectById(37);
        return sysUser;
    }

    @GetMapping("/user/getUser")
    public SysUser userUser(){
        SysUser sysUser = userMapper.selectById(37);
        return sysUser;
    }
}
